@border: #e8e8e8;
.k-divider {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: rgba(0, 0, 0, .65);
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
  background: @border;
  .k-divider-inner-text {
    display: inline-block;
    padding: 0 24px
  }
  &-dashed {
    background: none;
    border: dashed @border;
    border-width: 1px 0 0
  }
  &, &-vertical {
    position: relative;
    top: -.06em;
    display: inline-block;
    width: 1px;
    height: .9em;
    margin: 0 8px;
    vertical-align: middle;
  }
  .k-divider-inner-text {
    display: inline-block;
    padding: 0 10px
  }
  &-dashed {
    background: none;
    border: dashed @border;
    border-width: 1px 0 0;
  }
  &-vertical {
    .ant-divider-dashed {
      border-width: 0 0 0 1px
    }
  }
  &-horizontal {
    display: block;
    clear: both;
    width: 100%;
    min-width: 100%;
    height: 1px;
    margin: 24px 0;
    &.k-divider-with-text-center, &.k-divider-with-text-left, &.k-divider-with-text-right {
      display: table;
      margin: 16px 0;
      color: rgba(0, 0, 0, .85);
      font-weight: 500;
      font-size: 16px;
      white-space: nowrap;
      text-align: center;
      background: transparent;
      &::before {
        position: relative;
        top: 50%;
        display: table-cell;
        width: 50%;
        border-top: 1px solid @border;
        transform: translateY(50%);
        content: "";
      }
      &::after {
        position: relative;
        top: 50%;
        display: table-cell;
        width: 50%;
        border-top: 1px solid @border;
        transform: translateY(50%);
        content: ""
      }
    }
    &.k-divider-with-text-left::after, &.k-divider-with-text-right::before {
      top: 50%;
      width: 95%
    }
    &.k-divider-with-text-right::after {
      top: 50%;
      width: 5%
    }
    &.k-divider-with-text-left::before {
      top: 50%;
      width: 5%
    }
  }
}